<style>
    #login-button{
        background: #286090!important;
        color: white!important;
        border: 1px solid #286090!important;
        border-radius: 3px;
    }
    .up_file {  position:relative;  text-decoration:none; text-indent:0;margin-top: -10px}
    .up_file input { position:absolute; right:0; top:0; opacity:0; width: 100%;}
</style>
<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>

<div class="span10">
    <div style="margin-bottom: 20px;">
        <a href="/index/index">首页</a><span >&gt;</span><span>口语题库</span><span >&gt;</span><span>添加/修改</span>
    </div>

    <form name="form" method="post" action="<?php echo baseUrl."/content/speak/add"?>" enctype="multipart/form-data">
        <table>
            <tr>
                <td>选择年份:</td>
                <td>
                    <select name="year">
                        <option value ="">请选择年份</option>
                        <option value ="2023" <?php echo isset($data)&& $data['year']==2023 ?  'selected':''?>>2023</option>
                        <option value ="2022" <?php echo isset($data)&& $data['year']==2022 ?  'selected':''?>>2022</option>
                        <option value ="2021" <?php echo isset($data)&& $data['year']==2021 ?  'selected':''?>>2021</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>选择月份:</td>
                <td>
                    <select name="month">
                        <option value ="">请选择月份</option>
                        <option value ="1" <?php echo isset($data)&& $data['month']==1 ?  'selected':''?>>1-4月</option>
                        <option value ="2" <?php echo isset($data)&& $data['month']==2 ?  'selected':''?>>5-8月</option>
                        <option value ="3" <?php echo isset($data)&& $data['month']==3 ?  'selected':''?>>9-12月</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>选择Part:</td>
                <td>
                    <select name="part">
                        <option value ="">请选择Part</option>
                        <option value ="1" <?php echo isset($data)&& $data['part']==1 ?  'selected':''?>>Part1</option>
                        <option value ="2" <?php echo isset($data)&& $data['part']==2 ?  'selected':''?>>Part2&3</option>
                    </select>
                </td>
            </tr>
            
            <tr>
                <td>口语题目:</td>
                <td>
                    <textarea name="cate_name" style="width: 500px;height: 200px;"><?php echo isset($data)? $data['cate_name']:''?></textarea>
                </td>
            </tr>
            <tr>
                <td>点击量:</td>
                <td>
                    <input type="text" name="viewCount" value="<?php echo isset($data)? $data['viewCount']:''?>" />
                </td>
            </tr> 
            <tr>
                <td colspan="2" align="right">
                    <input type="hidden" name='id' value="<?php echo isset($data)? $data['id']:''?>"/>
                    <button type="submit" id="login-button">添加/修改</button></td>
            </tr>
            <input type="hidden" name="_csrf" value="<?=Yii::$app->request->getCsrfToken()?>" />
        </table>
    </form>

</div>
